
yum install epel-release -y
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum --enablerepo=remi-php73 install php -y

yum --enablerepo=remi-php73 install -y php-xml php-soap php-xmlrpc \
    php-mbstring php-json php-gd php-mcrypt php-pdo php-fpm \
    php-pg php-mysql php-zip

# yum --enablerepo=remi-php73 search php | grep php73

sed -i 's@listen\ =.*@listen = /var/run/php-fpm/php-fpm.sock@g' /etc/php-fpm.d/www.conf

export F="/etc/php.ini"
sed -i 's@^;\? \?upload_max_filesize =.*@upload_max_filesize = 128M@g' $F
sed -i 's@^;\? \?post_max_size =.*@post_max_size = 128M@g' $F
sed -i 's@^;\? \?max_execution_time =.*@max_execution_time = 0@g' $F
sed -i 's@^;\? \?memory_limit =.*@memory_limit = 1024M@g' $F

systemctl restart php-fpm

# composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com

composer global require "laravel/installer"

